package mygang.dao.manager;

import java.util.List;
import mygang.model.constructor.Form;
import mygang.model.constructor.FormType;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author Volodymyr Lavrynovych <volodya.lavrynovych@gmail.com>
 * date: 04/03/2013
 */
@Repository("wizardDAO")
@Transactional
public class WizardDAOImpl extends AbstractManageDAO<Form> implements WizardDAO {

    public List<FormType> getTypes() {
        return getHibernateTemplate().loadAll(FormType.class);
    }

    public FormType getTypeById(long id) {
        return getHibernateTemplate().get(FormType.class, id);
    }
}